<template>
  <div class="wrapper">
    <el-button @click="getInfo">getInfo</el-button>
    <el-button @click="chgInfo">chgInfo</el-button>
  </div>
</template>

<script>
import userInfoController from '@/api/ApiUserInfo'
import UserInfoChgDTO from '@/api/entity/UserInfoChgDTO'

export default {
  name: 'AppTest',
  components: {
  },
  data () {
    return {

    }
  },
  methods: {
    getInfo () {
      userInfoController.queryCurrentUserInfo(data => {
        alert(JSON.stringify(data))
      })
    },
    chgInfo () {
      const dto = UserInfoChgDTO.instance()
      dto.setNickname('几度夕阳红')
      userInfoController.updateCurrentUserInfo(dto, data => {
        alert(JSON.stringify(data))
      })
    }
  },
  watch: {
  }
}
</script>

<style lang="scss" scoped>

</style>
